<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>QuantumLibrary: /bb/mbigc/mbig5696/git/quantum_external/src/interface/quantum_iqueue.h Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">QuantumLibrary
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('df/d7b/quantum__iqueue_8h_source.html','../../');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">quantum_iqueue.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">** Copyright 2018 Bloomberg Finance L.P.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">**</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">** Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">** you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">** You may obtain a copy of the License at</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">**</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">**     http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">**</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">** Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">** distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">** See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">** limitations under the License.</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">*/</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#ifndef BLOOMBERG_QUANTUM_IQUEUE_H</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#define BLOOMBERG_QUANTUM_IQUEUE_H</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &lt;quantum/quantum_spinlock.h&gt;</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &lt;quantum/interface/quantum_iterminate.h&gt;</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &lt;quantum/interface/quantum_itask.h&gt;</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;quantum/interface/quantum_iqueue_statistics.h&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &lt;quantum/quantum_allocator.h&gt;</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">namespace </span><a class="code" href="../../d6/db9/namespaceBloomberg.html">Bloomberg</a> {</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">namespace </span>quantum {</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment">//==============================================================================================</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">//                                  interface IQueue</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment">//==============================================================================================</span></div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html">   33</a></span>&#160;<span class="comment"></span><span class="keyword">struct </span><a class="code" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html">IQueue</a> : <span class="keyword">public</span> <a class="code" href="../../d2/d41/namespaceITerminate.html">ITerminate</a></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;{</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <span class="comment">//Typedefs and enum definitions</span></div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#ab4c4a3db733a93ad451c9dc7ffe62824">   36</a></span>&#160;    <span class="keyword">using</span> <a class="code" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#ab4c4a3db733a93ad451c9dc7ffe62824">Ptr</a> = std::shared_ptr&lt;IQueue&gt;;</div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a5d3e6340ac9844b3fabb6759e1b7facb">   37</a></span>&#160;    <span class="keyword">enum class</span> <a class="code" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a5d3e6340ac9844b3fabb6759e1b7facb">QueueType</a> : int { <a class="code" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a5d3e6340ac9844b3fabb6759e1b7facbad594f8e0e058efd6cc21aa4ec8498277">Coro</a>, <a class="code" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a5d3e6340ac9844b3fabb6759e1b7facbacf3882f1c43ab22bff0bd9d82d83251b">IO</a>, <a class="code" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a5d3e6340ac9844b3fabb6759e1b7facbab1c94ca2fbc3e78fc30069c8d0f01680">All</a> };</div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#aec9f17dc0836162032f0239b2415649e">   38</a></span>&#160;    <span class="keyword">enum class</span> <a class="code" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#aec9f17dc0836162032f0239b2415649e">QueueId</a> : int { <a class="code" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#aec9f17dc0836162032f0239b2415649eaed36a1ef76a59ee3f15180e0441188ad">Any</a> = -1, <a class="code" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#aec9f17dc0836162032f0239b2415649eac90a13d8ec8fe53c6bb33fe10af6f2fe">Same</a> = -2, <a class="code" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#aec9f17dc0836162032f0239b2415649eab1c94ca2fbc3e78fc30069c8d0f01680">All</a> = -3 };</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    </div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="comment">//Interface methods</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a2b26630f2b788587cbfdc6b9cdfa32f5">pinToCore</a>(<span class="keywordtype">int</span> coreId) = 0;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    </div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#ad0e76e814f49c0571c34f8385b83a4d3">run</a>() = 0;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    </div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a3160aa0fd603f3fdefe94b5765ae3d06">enqueue</a>(<a class="code" href="../../df/daf/structBloomberg_1_1quantum_1_1ITask.html#a6c5b8216547b11f3f0e0e6bc7d20956d">ITask::Ptr</a> task) = 0;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    </div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a089cbdd69a554fe45fc46c608f470538">tryEnqueue</a>(<a class="code" href="../../df/daf/structBloomberg_1_1quantum_1_1ITask.html#a6c5b8216547b11f3f0e0e6bc7d20956d">ITask::Ptr</a> task) = 0;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    </div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="../../df/daf/structBloomberg_1_1quantum_1_1ITask.html#a6c5b8216547b11f3f0e0e6bc7d20956d">ITask::Ptr</a> <a class="code" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a0e08ead7b9a2a82815c4be8a1dd69eb4">dequeue</a>(std::atomic_bool&amp; hint) = 0;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    </div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="../../df/daf/structBloomberg_1_1quantum_1_1ITask.html#a6c5b8216547b11f3f0e0e6bc7d20956d">ITask::Ptr</a> <a class="code" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a60aba8f2ed1ed1fef0054104aa7cc31f">tryDequeue</a>(std::atomic_bool&amp; hint) = 0;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    </div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">size_t</span> <a class="code" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a96c22d2b4a4823457f31c2d4bcfbcd4f">size</a>() <span class="keyword">const</span> = 0;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    </div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a652d294c36a4df010cfbf94b1743a40b">empty</a>() <span class="keyword">const</span> = 0;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    </div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="../../d5/de7/structBloomberg_1_1quantum_1_1IQueueStatistics.html">IQueueStatistics</a>&amp; <a class="code" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a528f9a6e0b5f6cb3cf043af135f380a1">stats</a>() = 0;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    </div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="../../de/df4/namespaceSpinLock.html">SpinLock</a>&amp; <a class="code" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a2f5a2d983d0300b5728605589efc3fd1">getLock</a>() = 0;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    </div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#aa229841d1c65dd381ad5674fb8701da0">signalEmptyCondition</a>(<span class="keywordtype">bool</span> value) = 0;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    </div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a0695aa035537f8557673013c88cfa7d9">isIdle</a>() <span class="keyword">const</span> = 0;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;};</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a7d4b3ca717b7edbb5e52879829cb42ad">   66</a></span>&#160;<span class="keyword">using</span> <a class="code" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a7d4b3ca717b7edbb5e52879829cb42ad">IQueuePtr</a> = <a class="code" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#ab4c4a3db733a93ad451c9dc7ffe62824">IQueue::Ptr</a>;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="preprocessor">#ifndef __QUANTUM_QUEUE_LIST_ALLOC_SIZE</span></div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="preprocessor">    #define __QUANTUM_QUEUE_LIST_ALLOC_SIZE __QUANTUM_DEFAULT_POOL_ALLOC_SIZE</span></div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="preprocessor">#ifndef __QUANTUM_USE_DEFAULT_ALLOCATOR</span></div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="preprocessor">    #ifdef __QUANTUM_ALLOCATE_POOL_FROM_HEAP</span></div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        <span class="keyword">using</span> <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html">QueueListAllocator</a> = <a class="code" href="../../d2/da6/structBloomberg_1_1quantum_1_1HeapAllocator.html">HeapAllocator&lt;ITask::Ptr&gt;</a>;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="preprocessor">    #else</span></div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a8a48c732495dfe1af2d8bf0e3febe94f">   75</a></span>&#160;        <span class="keyword">using</span> <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html">QueueListAllocator</a> = <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html">StackAllocator&lt;ITask::Ptr, __QUANTUM_QUEUE_LIST_ALLOC_SIZE&gt;</a>;</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="preprocessor">    #endif</span></div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <span class="keyword">using</span> <a class="code" href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html">QueueListAllocator</a> = <a class="code" href="../../d7/dd7/structBloomberg_1_1quantum_1_1StlAllocator.html">StlAllocator&lt;ITask::Ptr&gt;</a>;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;}}</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="preprocessor">#endif //BLOOMBERG_QUANTUM_IQUEUE_H</span></div><div class="ttc" id="structBloomberg_1_1quantum_1_1IQueue_html_aa229841d1c65dd381ad5674fb8701da0"><div class="ttname"><a href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#aa229841d1c65dd381ad5674fb8701da0">Bloomberg::quantum::IQueue::signalEmptyCondition</a></div><div class="ttdeci">virtual void signalEmptyCondition(bool value)=0</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1IQueue_html_a5d3e6340ac9844b3fabb6759e1b7facb"><div class="ttname"><a href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a5d3e6340ac9844b3fabb6759e1b7facb">Bloomberg::quantum::IQueue::QueueType</a></div><div class="ttdeci">QueueType</div><div class="ttdef"><b>Definition:</b> quantum_iqueue.h:37</div></div>
<div class="ttc" id="namespaceBloomberg_html"><div class="ttname"><a href="../../d6/db9/namespaceBloomberg.html">Bloomberg</a></div><div class="ttdef"><b>Definition:</b> quantum_buffer_impl.h:22</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1IQueue_html_a60aba8f2ed1ed1fef0054104aa7cc31f"><div class="ttname"><a href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a60aba8f2ed1ed1fef0054104aa7cc31f">Bloomberg::quantum::IQueue::tryDequeue</a></div><div class="ttdeci">virtual ITask::Ptr tryDequeue(std::atomic_bool &amp;hint)=0</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1IQueue_html_a089cbdd69a554fe45fc46c608f470538"><div class="ttname"><a href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a089cbdd69a554fe45fc46c608f470538">Bloomberg::quantum::IQueue::tryEnqueue</a></div><div class="ttdeci">virtual bool tryEnqueue(ITask::Ptr task)=0</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1StlAllocator_html"><div class="ttname"><a href="../../d7/dd7/structBloomberg_1_1quantum_1_1StlAllocator.html">Bloomberg::quantum::StlAllocator</a></div><div class="ttdef"><b>Definition:</b> quantum_allocator.h:36</div></div>
<div class="ttc" id="namespaceITerminate_html"><div class="ttname"><a href="../../d2/d41/namespaceITerminate.html">ITerminate</a></div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1IQueue_html_aec9f17dc0836162032f0239b2415649eac90a13d8ec8fe53c6bb33fe10af6f2fe"><div class="ttname"><a href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#aec9f17dc0836162032f0239b2415649eac90a13d8ec8fe53c6bb33fe10af6f2fe">Bloomberg::quantum::IQueue::QueueId::Same</a></div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1IQueue_html_aec9f17dc0836162032f0239b2415649eab1c94ca2fbc3e78fc30069c8d0f01680"><div class="ttname"><a href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#aec9f17dc0836162032f0239b2415649eab1c94ca2fbc3e78fc30069c8d0f01680">Bloomberg::quantum::IQueue::QueueId::All</a></div></div>
<div class="ttc" id="namespaceSpinLock_html"><div class="ttname"><a href="../../de/df4/namespaceSpinLock.html">SpinLock</a></div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1ITask_html_a6c5b8216547b11f3f0e0e6bc7d20956d"><div class="ttname"><a href="../../df/daf/structBloomberg_1_1quantum_1_1ITask.html#a6c5b8216547b11f3f0e0e6bc7d20956d">Bloomberg::quantum::ITask::Ptr</a></div><div class="ttdeci">std::shared_ptr&lt; ITask &gt; Ptr</div><div class="ttdef"><b>Definition:</b> quantum_itask.h:34</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1StackAllocator_html"><div class="ttname"><a href="../../d0/d75/structBloomberg_1_1quantum_1_1StackAllocator.html">Bloomberg::quantum::StackAllocator</a></div><div class="ttdoc">Provides a stack-based object pool to the underlying ContiguousPoolManager. The default buffer size i...</div><div class="ttdef"><b>Definition:</b> quantum_stack_allocator.h:34</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1IQueue_html"><div class="ttname"><a href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html">Bloomberg::quantum::IQueue</a></div><div class="ttdoc">Interface to a task queue. For internal use only.</div><div class="ttdef"><b>Definition:</b> quantum_iqueue.h:33</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1IQueue_html_a528f9a6e0b5f6cb3cf043af135f380a1"><div class="ttname"><a href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a528f9a6e0b5f6cb3cf043af135f380a1">Bloomberg::quantum::IQueue::stats</a></div><div class="ttdeci">virtual IQueueStatistics &amp; stats()=0</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1IQueue_html_a0695aa035537f8557673013c88cfa7d9"><div class="ttname"><a href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a0695aa035537f8557673013c88cfa7d9">Bloomberg::quantum::IQueue::isIdle</a></div><div class="ttdeci">virtual bool isIdle() const =0</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1IQueue_html_aec9f17dc0836162032f0239b2415649eaed36a1ef76a59ee3f15180e0441188ad"><div class="ttname"><a href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#aec9f17dc0836162032f0239b2415649eaed36a1ef76a59ee3f15180e0441188ad">Bloomberg::quantum::IQueue::QueueId::Any</a></div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1IQueue_html_a2b26630f2b788587cbfdc6b9cdfa32f5"><div class="ttname"><a href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a2b26630f2b788587cbfdc6b9cdfa32f5">Bloomberg::quantum::IQueue::pinToCore</a></div><div class="ttdeci">virtual void pinToCore(int coreId)=0</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1IQueue_html_a5d3e6340ac9844b3fabb6759e1b7facbad594f8e0e058efd6cc21aa4ec8498277"><div class="ttname"><a href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a5d3e6340ac9844b3fabb6759e1b7facbad594f8e0e058efd6cc21aa4ec8498277">Bloomberg::quantum::IQueue::QueueType::Coro</a></div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1IQueue_html_a96c22d2b4a4823457f31c2d4bcfbcd4f"><div class="ttname"><a href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a96c22d2b4a4823457f31c2d4bcfbcd4f">Bloomberg::quantum::IQueue::size</a></div><div class="ttdeci">virtual size_t size() const =0</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1IQueue_html_ab4c4a3db733a93ad451c9dc7ffe62824"><div class="ttname"><a href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#ab4c4a3db733a93ad451c9dc7ffe62824">Bloomberg::quantum::IQueue::Ptr</a></div><div class="ttdeci">std::shared_ptr&lt; IQueue &gt; Ptr</div><div class="ttdef"><b>Definition:</b> quantum_iqueue.h:36</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1IQueue_html_a2f5a2d983d0300b5728605589efc3fd1"><div class="ttname"><a href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a2f5a2d983d0300b5728605589efc3fd1">Bloomberg::quantum::IQueue::getLock</a></div><div class="ttdeci">virtual SpinLock &amp; getLock()=0</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1HeapAllocator_html"><div class="ttname"><a href="../../d2/da6/structBloomberg_1_1quantum_1_1HeapAllocator.html">Bloomberg::quantum::HeapAllocator</a></div><div class="ttdoc">Provides a heap-based object pool to the underlying ContiguousPoolManager. The default buffer size is...</div><div class="ttdef"><b>Definition:</b> quantum_heap_allocator.h:33</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1IQueue_html_a0e08ead7b9a2a82815c4be8a1dd69eb4"><div class="ttname"><a href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a0e08ead7b9a2a82815c4be8a1dd69eb4">Bloomberg::quantum::IQueue::dequeue</a></div><div class="ttdeci">virtual ITask::Ptr dequeue(std::atomic_bool &amp;hint)=0</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1IQueue_html_ad0e76e814f49c0571c34f8385b83a4d3"><div class="ttname"><a href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#ad0e76e814f49c0571c34f8385b83a4d3">Bloomberg::quantum::IQueue::run</a></div><div class="ttdeci">virtual void run()=0</div></div>
<div class="ttc" id="namespaceBloomberg_1_1quantum_html_a7d4b3ca717b7edbb5e52879829cb42ad"><div class="ttname"><a href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a7d4b3ca717b7edbb5e52879829cb42ad">Bloomberg::quantum::IQueuePtr</a></div><div class="ttdeci">IQueue::Ptr IQueuePtr</div><div class="ttdef"><b>Definition:</b> quantum_iqueue.h:66</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1IQueueStatistics_html"><div class="ttname"><a href="../../d5/de7/structBloomberg_1_1quantum_1_1IQueueStatistics.html">Bloomberg::quantum::IQueueStatistics</a></div><div class="ttdoc">Interface to access and manipulate a QueueStatistics object.</div><div class="ttdef"><b>Definition:</b> quantum_iqueue_statistics.h:29</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1IQueue_html_a3160aa0fd603f3fdefe94b5765ae3d06"><div class="ttname"><a href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a3160aa0fd603f3fdefe94b5765ae3d06">Bloomberg::quantum::IQueue::enqueue</a></div><div class="ttdeci">virtual void enqueue(ITask::Ptr task)=0</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1IQueue_html_a5d3e6340ac9844b3fabb6759e1b7facbab1c94ca2fbc3e78fc30069c8d0f01680"><div class="ttname"><a href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a5d3e6340ac9844b3fabb6759e1b7facbab1c94ca2fbc3e78fc30069c8d0f01680">Bloomberg::quantum::IQueue::QueueType::All</a></div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1IQueue_html_aec9f17dc0836162032f0239b2415649e"><div class="ttname"><a href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#aec9f17dc0836162032f0239b2415649e">Bloomberg::quantum::IQueue::QueueId</a></div><div class="ttdeci">QueueId</div><div class="ttdef"><b>Definition:</b> quantum_iqueue.h:38</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1IQueue_html_a5d3e6340ac9844b3fabb6759e1b7facbacf3882f1c43ab22bff0bd9d82d83251b"><div class="ttname"><a href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a5d3e6340ac9844b3fabb6759e1b7facbacf3882f1c43ab22bff0bd9d82d83251b">Bloomberg::quantum::IQueue::QueueType::IO</a></div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1IQueue_html_a652d294c36a4df010cfbf94b1743a40b"><div class="ttname"><a href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html#a652d294c36a4df010cfbf94b1743a40b">Bloomberg::quantum::IQueue::empty</a></div><div class="ttdeci">virtual bool empty() const =0</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="../../dir_650ee533936399e683a30afb9473a469.html">interface</a></li><li class="navelem"><b>quantum_iqueue.h</b></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>
